.class final Lnet/tsapps/topdeals/c/n;
.super Ljava/lang/Thread;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/c/f;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/c/f;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 5

    :cond_0
    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v0, v0, Lnet/tsapps/topdeals/c/f;->b:Lnet/tsapps/topdeals/c/i;

    invoke-static {v0}, Lnet/tsapps/topdeals/c/i;->a(Lnet/tsapps/topdeals/c/i;)Ljava/util/Stack;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v0, v0, Lnet/tsapps/topdeals/c/f;->b:Lnet/tsapps/topdeals/c/i;

    invoke-static {v0}, Lnet/tsapps/topdeals/c/i;->a(Lnet/tsapps/topdeals/c/i;)Ljava/util/Stack;

    move-result-object v1

    monitor-enter v1
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    iget-object v0, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v0, v0, Lnet/tsapps/topdeals/c/f;->b:Lnet/tsapps/topdeals/c/i;

    invoke-static {v0}, Lnet/tsapps/topdeals/c/i;->a(Lnet/tsapps/topdeals/c/i;)Ljava/util/Stack;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->wait()V

    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_1
    :try_start_2
    iget-object v0, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v0, v0, Lnet/tsapps/topdeals/c/f;->b:Lnet/tsapps/topdeals/c/i;

    invoke-static {v0}, Lnet/tsapps/topdeals/c/i;->a(Lnet/tsapps/topdeals/c/i;)Ljava/util/Stack;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v0, v0, Lnet/tsapps/topdeals/c/f;->b:Lnet/tsapps/topdeals/c/i;

    invoke-static {v0}, Lnet/tsapps/topdeals/c/i;->a(Lnet/tsapps/topdeals/c/i;)Ljava/util/Stack;

    move-result-object v1

    monitor-enter v1
    :try_end_2
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0

    :try_start_3
    iget-object v0, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v0, v0, Lnet/tsapps/topdeals/c/f;->b:Lnet/tsapps/topdeals/c/i;

    invoke-static {v0}, Lnet/tsapps/topdeals/c/i;->a(Lnet/tsapps/topdeals/c/i;)Ljava/util/Stack;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Stack;->pop()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/c/a;

    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :try_start_4
    iget-object v1, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v2, v0, Lnet/tsapps/topdeals/c/a;->a:Ljava/lang/String;

    invoke-static {v1, v2}, Lnet/tsapps/topdeals/c/f;->a(Lnet/tsapps/topdeals/c/f;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v2

    iget-object v1, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v1, v1, Lnet/tsapps/topdeals/c/f;->a:Lnet/tsapps/topdeals/f/a;

    iget-object v3, v0, Lnet/tsapps/topdeals/c/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v3, v2}, Lnet/tsapps/topdeals/f/a;->a(Ljava/lang/String;Landroid/graphics/Bitmap;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    invoke-static {v1}, Lnet/tsapps/topdeals/c/f;->a(Lnet/tsapps/topdeals/c/f;)Ljava/util/Map;

    move-result-object v1

    iget-object v3, v0, Lnet/tsapps/topdeals/c/a;->b:Landroid/widget/ImageView;

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-eqz v1, :cond_2

    iget-object v3, v0, Lnet/tsapps/topdeals/c/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    new-instance v1, Lnet/tsapps/topdeals/c/j;

    iget-object v3, p0, Lnet/tsapps/topdeals/c/n;->a:Lnet/tsapps/topdeals/c/f;

    iget-object v4, v0, Lnet/tsapps/topdeals/c/a;->b:Landroid/widget/ImageView;

    invoke-direct {v1, v3, v2, v4}, Lnet/tsapps/topdeals/c/j;-><init>(Lnet/tsapps/topdeals/c/f;Landroid/graphics/Bitmap;Landroid/widget/ImageView;)V

    iget-object v0, v0, Lnet/tsapps/topdeals/c/a;->b:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    :cond_2
    invoke-static {}, Ljava/lang/Thread;->interrupted()Z
    :try_end_4
    .catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_0

    move-result v0

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :catchall_0
    move-exception v0

    :try_start_5
    monitor-exit v1
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :try_start_6
    throw v0
    :try_end_6
    .catch Ljava/lang/InterruptedException; {:try_start_6 .. :try_end_6} :catch_0

    :catch_0
    move-exception v0

    goto :goto_0

    :catchall_1
    move-exception v0

    :try_start_7
    monitor-exit v1
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    :try_start_8
    throw v0
    :try_end_8
    .catch Ljava/lang/InterruptedException; {:try_start_8 .. :try_end_8} :catch_0
.end method
